package model;

import java.util.ArrayList;
import java.util.List; 
import javax.vecmath.Point3i;


public class Triangles {
	private Integer num;
	private List<Point3i> triangles;
	
	public Triangles(int num, String[] values) {
		this.num = num;
		this.triangles = new ArrayList<Point3i>(num);
		String[] each;
		for (String eachValue: values) {
			each = eachValue.split(" ");
			triangles.add(new Point3i(Integer.parseInt(each[0]), Integer.parseInt(each[1]),
					Integer.parseInt(each[2])));
		}
	}
	
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public List<Point3i> getTriangles() {
		return triangles;
	}
	public void setTriangles(List<Point3i> triangles) {
		this.triangles = triangles;
	}
	
	
}
